//
//  Player.h
//  LoveToListen
//
//  Created by apple on 16/4/10.
//  Copyright © 2016年 LanOu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "STKAudioPlayer.h"

@interface Player : NSObject<STKAudioPlayerDelegate>

+ (instancetype)shareInstance;

@property (nonatomic, retain) STKAudioPlayer *player;
@property (nonatomic , retain)  NSArray *songArr;
@property (nonatomic , retain) NSMutableArray *radomArr;
@property (nonatomic , assign)  NSInteger type;
@property (nonatomic , assign)  NSInteger num;
@property (nonatomic , assign)  NSInteger circleType;
@property (nonatomic , copy) NSString *title;
@property (nonatomic , copy) NSString *singer;
@property (nonatomic , copy) NSString *imgUrl;
@property (nonatomic , copy) NSString *imgName;

- (void) playUrl:(NSString *)str;

- (void) playFile:(NSString *)path;

- (void) play;

- (void) stop;

- (void) pause;

- (void) resume;

- (void) nextSong;

- (void) frontSong;

//锁屏状态下播放
- (void) configNowPlayingInfoCenter;

@end
